package br.usjt.component.login.factory;

import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

public class JPAProducer {

    @PersistenceContext(unitName = "login")
    EntityManager em;

    @Produces
    @RequestScoped
    public EntityManager createConnection() {
        return em;
    }

}
